import book.Booklist;
import user.User;
import work.ExchangeUser;
import work.ExitSystem;

public class Main {
    public static void main(String[] args) {
        Booklist booklist = new Booklist();
        while (ExchangeUser.Ischange()) {
            ExchangeUser.setIschange(false);
            User user = User.login();
            while (ExitSystem.Isonline()) {
                int choice = user.menu();
                user.dobookswork(choice, booklist);
                if(ExchangeUser.Ischange()){break;}
            }
        }
    }
}
